package com.aspose.cells;

public class CheckBox extends Shape {
   private int a;

   CheckBox(ShapeCollection shapes) {
      super(shapes, 11, shapes);
      this.w = new zbtz(this);
   }

   public boolean getValue() {
      return this.a == 1;
   }

   public void setValue(boolean value) {
      if (value) {
         this.setCheckedValue(1);
      } else {
         this.setCheckedValue(0);
      }

   }

   /** @deprecated */
   public int getCheckValue() {
      return this.a;
   }

   /** @deprecated */
   public void setCheckValue(int value) {
      this.setCheckedValue(value);
   }

   public int getCheckedValue() throws Exception {
      if (this.u != null) {
         this.updateSelectedValue();
      }

      return this.a;
   }

   public void setCheckedValue(int value) {
      this.a = value;
      if (this.u != null) {
         Boolean var2 = false;
         Object var3;
         if (value == 1) {
            var3 = true;
         } else if (value == 2) {
            var3 = "#N/A";
         } else {
            var3 = false;
         }

         this.b(var3);
      }

   }

   void a(int var1) {
      this.a = var1;
   }

   int a() {
      return this.a;
   }

   public boolean getShadow() {
      return this.z;
   }

   public void setShadow(boolean value) {
      this.z = value;
   }

   void a(CheckBox var1, CopyOptions var2) {
      this.a = var1.a;
      super.a((Shape)var1, (CopyOptions)var2);
   }
}
